package com.weiyi.portal.modules.ums.service;

import com.weiyi.portal.dto.UmsUserInfoDTO;
import com.weiyi.portal.modules.ums.model.UmsMember;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author PZC
 * @since 2022-10-13
 */
public interface UmsMemberService extends IService<UmsMember> {


    public UserDetails loadUserByUserName(String username);

    public  UmsMember login(String userName, String passWord);

    public UmsMember register(UmsMember user);

    public UmsUserInfoDTO getUserHomeInfo(Long id);

    public void updateFansFollowNum(String username, String type, String op);

    List<UmsMember> getFollowById(Integer id);

    List<UmsMember> getFansById(Integer id);
}
